package com.flurry.android;

import com.flurry.android.responses.AppCloudError;
import com.flurry.android.responses.AppCloudLoginResponseHandler;

final class cz
  implements AppCloudLoginResponseHandler
{
  cz(AppCloudLoginResponseHandler paramAppCloudLoginResponseHandler, String paramString1, String paramString2, String paramString3)
  {
  }

  public final void onError(AppCloudError paramAppCloudError)
  {
    AppCloudUser localAppCloudUser = new AppCloudUser();
    if ((paramAppCloudError.getErrorCode() == 404) && (paramAppCloudError.getErrorMessage().equals("not found")))
    {
      localAppCloudUser.setUsername(this.ff);
      localAppCloudUser.setEmail(this.fg);
      localAppCloudUser.setPassword(this.fh);
      try
      {
        localAppCloudUser.saveOrCreateWithCompletionHandler(new bz(this));
        return;
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
        return;
      }
    }
    this.fe.onError(paramAppCloudError);
  }

  public final void onOperationSucceed(AppCloudUser paramAppCloudUser)
  {
    this.fe.onOperationSucceed(paramAppCloudUser);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.cz
 * JD-Core Version:    0.6.2
 */